﻿<UserControl 
    x:Class="DataGridSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:l="clr-namespace:DataGridSample"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <UserControl.DataContext>
        <l:MainPageViewModel />
    </UserControl.DataContext>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <sdk:DataGrid ItemsSource="{Binding Path=People}" AutoGeneratingColumn="DataGrid_AutoGeneratingColumn" />
        <sdk:DataGrid Grid.Row="1" ItemsSource="{Binding Path=People}" AutoGenerateColumns="False">
        </sdk:DataGrid>
    </Grid>
</UserControl>
